package com.igroupes.ovineherd.dto.request;

import lombok.Data;

import java.util.List;

@Data
public class GetRequestWhereNode {
    private String conjunction; // and / or
    private List<FieldWithValue> children;


    @Data
    public static class FieldWithValue {
        private String id;
        private Object right;
        private String op;
        private Left left;
        private String conjunction;
        private List<FieldWithValue> children;

        @Data
        public static class Left {
            private String type;
            private String field;
        }
    }

}
